import junit.framework.TestCase;

/*
20162319 Mose in 2017/10/10 0:05
 */

public class ArrayStackTest extends TestCase {
    ArrayStack fuck = new ArrayStack();

    public void testPop() throws Exception {
        fuck.push(1);
        assertEquals(1, fuck.pop());
    }

    public void testPeek() throws Exception {
        fuck.push(1);
        assertEquals(1, fuck.peek());
    }

    public void testIsEmpty() throws Exception {
        assertEquals(true, fuck.isEmpty());
        fuck.push(1);
        assertEquals(false, fuck.isEmpty());
    }

    public void testSize() throws Exception {
        assertEquals(0, fuck.size());
        fuck.push(1);
        assertEquals(1, fuck.size());
    }
}

